package com.zwh.modules.datamax.entity;

import java.util.Date;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.converters.date.DateStringConverter;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.zwh.common.utils.easyexcel.annotation.ExcelFillProperty;

import java.io.Serializable;

/**
 * <p>
 * 数据类型最大值表
 * </p>
 *
 * @author zhangwenhe
 * @since 2020-04-25
 */
public class DataMax implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 数据id
     */
    @TableId
    private String id;
    @TableField(exist=false)
    private String noData="123456";

    /**
     * 数据类型
     */
    private String dataType;

    /**
     * 最大值
     */
    private Integer maxSort;

    /**
     * 创建时间
     */
    @DateTimeFormat("yyyy年M月d日")
    @ExcelFillProperty(converter = DateStringConverter.class)
    private Date createDate;

    /**
     * 更新时间
     */
    private Date updateDate;

    /**
     * 删除标志
     */
    @TableLogic
    private String deleteStatus;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }
    public Integer getMaxSort() {
        return maxSort;
    }

    public void setMaxSort(Integer maxSort) {
        this.maxSort = maxSort;
    }
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
    public String getDeleteStatus() {
        return deleteStatus;
    }

    public void setDeleteStatus(String deleteStatus) {
        this.deleteStatus = deleteStatus;
    }

    @Override
    public String toString() {
        return "DataMax{" +
            "id=" + id +
            ", dataType=" + dataType +
            ", maxSort=" + maxSort +
            ", createDate=" + createDate +
            ", updateDate=" + updateDate +
            ", deleteStatus=" + deleteStatus +
        "}";
    }
}
